import java.util.ArrayList;
import java.util.List;

class Xuesheng {
    List<Kecheng> courseList = new ArrayList<Kecheng>();
    String m_name;
    int m_id;
    int m_age;

    Xuesheng(String name, int id, int age) {
        this.m_name = name;
        this.m_id = id;
        this.m_age = age;
    }

    void SelectCourse(Kecheng course) { // 学生选课
        courseList.add(course);
    }//选课

    void ExitCourse(Kecheng course) { // 学生退课
        courseList.remove(course);
    }//退课

    void printCourseList() {
        for (Kecheng course : courseList) {
            System.out.println(
                    "课程号：" + course.m_id +
                            "、课程名：" + course.m_name +
                            "、上课地点：" + course.m_place +
                            "、上课时间：" + course.m_time +
                            "、授课教师：" + course.m_Teacher.m_name);
        }
    }
}
